//-----------------------------------------------
//-      - Defines methods and attributes of the grid
//-----------------------------------------------

/* These defines allow the header to be included more than once
in the same file */
#ifndef __IGU_GRID__
#define __IGU_GRID__

#include "Vec2.h"

class Grid
{
public:
	// Constructor (initialize the default values of the object)
	Grid();

	// Render the grid with OpenGL
	void render(int ventana) const;
	void renderTrajectory(int ventana) const;

	void show();
	void hide();
	void toggle();

	void setColor(float red, float green, float blue);

	void AddLine();
	void RemoveLine();

	void ClosestVertexTrajectory (float x, float y, float& xDevuelto, float& yDevuelto, int ventana);
	void ClosestVertexShape (float x, float y, float& xDevuelto, float& yDevuelto, int ventana);

private:
	unsigned int _total;
	bool m_bDisplayGrid;
	float redCol, greenCol, blueCol;
};


#endif

